<f:view
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		>

	<ui:composition>
		<ui:decorate template="/facelets/template/mainTemplate.xhtml">
			<ui:define name="title">
				<h:outputText value="#{commonBundle.diploma}"/>
			</ui:define>
			<ui:define name="center">
				<ui:decorate template="/facelets/template/centerTemplate.xhtml">
					<ui:define name="content">
						<a4j:form>
							<ui:decorate template="/facelets/template/student/studentTableTemplate.xhtml"/>
							<br/>
							<ui:decorate template="/facelets/template/student/eventReasonTemplate.xhtml">
								<ui:param name="event" value="#{studentBean.obtainDiplomaEvent}"/>
							</ui:decorate>
							<br/>
							<a4j:commandButton id="butSave" value="#{commonBundle.diploma}"
											   action="#{studentBean.requestObtainDiplomaStudent}"/>
							<a4j:commandButton id="butCancel" value="#{commonBundle.cancel}"
											   action="#{studentBean.cancelEventStudent}" immediate="true"/>
						</a4j:form>
					</ui:define>
				</ui:decorate>
			</ui:define>
		</ui:decorate>
	</ui:composition>
</f:view>
